package crypt;

import java.io.File;
import java.io.IOException;
import java.io.Serializable;

/**
 * The configuration which should be used to decrypt the file * 
 */
@SuppressWarnings("serial")
public class Configuration implements Serializable {

	/* --- Data Members --- */

	/** The path to the encrypted file */
	private String encryptedFilePath;

	/** The path to the file which store the crypto variables */
	private String cryptVarFilePath;

	/* --- Ctors --- */

	public Configuration(String password) throws IOException {
		this.encryptedFilePath = File.createTempFile("encrypted", ".data")
				.getAbsolutePath();
		this.cryptVarFilePath = File.createTempFile("cryptovra", ".data")
				.getAbsolutePath();
	}


	/**
	 * @return the path to the encrypted file
	 */
	public String getEncryptedFilePath() {
		return encryptedFilePath;
	}

	/**
	 * @return the path to the crypto variables file
	 */
	public String getCryptVarFilePath() {
		return cryptVarFilePath;
	}
}
